package com.tangji.signaltower.service.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.tangji.signaltower.service.dao.inter.UserAccessDao;
import com.tangji.signaltower.service.dao.entity.UserAccessEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: anonymous
* Date: 2020-09-17
* Time: 19:15:19.750
*/

@Repository
public class UserAccessDaoImpl extends AbstractBaseMapper<UserAccessEntity> implements UserAccessDao {

    @Override
    public UserAccessEntity selectUserAccessByUserCode(String userCode) {
        Map<String, Object> params = new HashMap<>();
        params.put("userCode", userCode);
        return getSqlSession().selectOne(this.getStatement("selectUserAccessByUserCode"), params);
    }
}